import request from '@/utils/request'
import { exportFileByUrl, GetParams } from "@/utils/common.js";

export function saveFinance(data) {
    return request({
      url: 'hermes/finance/saveFinance',
      method: 'post',
      data
    }) 
  }
export function getFinance(params) {
    return request({
      url: 'hermes/finance/getFinance',
      method: 'get',
      params
    })
  }

  export function getProductFinance(params) {
    return request({
      url: 'hermes/product/baseInfo/queryFundPrice',
      method: 'get',
      params
    })
  }


export function updateFinance(data) {
    return request({
      url: 'hermes/finance/update',
      method: 'put',
      data
    }) 
  }

  
export function deleteFinance(params) {
  return request({
    url: 'hermes/finance/delete',
    method: 'delete',
    params
  }) 
}